//
//  KHBlueToothManager.h
//  KissHealth
//
//  Created by bingo on 2018/12/5.
//  Copyright © 2018 Mark. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KHBlueToothHelper.h"

NS_ASSUME_NONNULL_BEGIN


typedef void (^ReturnValueBlock) (NSString * passedValue);

@interface KHBlueToothManager : NSObject

@property (nonatomic, copy) ReturnValueBlock block;

+ (instancetype)sharedManager;

/// 开始蓝牙测量
- (void)beginBlueToothMeterWithType:(KHPeripheralType)type block:(ReturnValueBlock)block;

/// 停止测量
- (void)stopPeripheralsConnection;

- (BOOL)checkSum:(NSData *)data;
- (void)handleBloodChannelResultData:(NSData *)data;

/// 处理体脂数据
- (void)_handleBodyFatData:(NSData *)data;

@end


NS_ASSUME_NONNULL_END
